import request from '@/api/request'
export default {
  index(params) {
    return request({
      url: '/admin/wordorder/index',
      method: 'get',
      params
    })
  },
  create(data) {
    return request({
      url: '/admin/wordorder/create',
      method: 'post',
      data
    })
  },
  update(data) {
    return request({
      url: '/admin/wordorder/update',
      method: 'post',
      data
    })
  },
  info(id) {
    return request({
      url: '/admin/wordorder/info',
      method: 'get',
      params: {
        id
      }
    })
  },
  delete(id) {
    return request({
      url: '/admin/wordorder/delete',
      method: 'get',
      params: {
        id
      }
    })
  },
  feedback(data) {
    return request({
      url: '/admin/wordorder/feedback',
      method: 'post',
      data
    })
  },
  feedbacks(params) {
    return request({
      url: '/admin/wordorder/feedbackList',
      method: 'get',
      params
    })
  },

  staffs(params) {
    return request({
      url: '/admin/wordorder/staffList',
      method: 'get',
      params
    })
  },

  staff(data) {
    return request({
      url: '/admin/wordorder/staff',
      method: 'post',
      data
    })
  },

  staffDelete(id) {
    return request({
      url: '/admin/wordorder/staffDelete',
      method: 'get',
      params: {
        id
      }
    })
  },

  tasks(params) {
    return request({
      url: '/admin/wordorder/taskList',
      method: 'get',
      params
    })
  },

  task(data) {
    return request({
      url: '/admin/wordorder/task',
      method: 'post',
      data
    })
  },

  equipment(params) {
    return request({
      url: '/admin/wordorder/equipment',
      method: 'get',
      params
    })
  },
  archive(id) {
    return request({
      url: '/admin/wordorder/archive',
      method: 'get',
      params: {
        id
      }
    })
  },

  partList(params) {
    return request({
      url: '/admin/wordorder/partList',
      method: 'get',
      params
    })
  },
  part(data) {
    return request({
      url: '/admin/wordorder/part',
      method: 'post',
      data
    })
  },
  partDelete(id) {
    return request({
      url: '/admin/wordorder/partDelete',
      method: 'get',
      params: {
        id
      }
    })
  }
}
